import React, { useState } from 'react';
import { Button, Divider, Popover } from 'antd'


import styles from '../index.module.less'

const PopoverHooks: React.FC = ({
  children,
  onSearchSelect
}) => {

  const [open, setOpen] = useState(false);

  const hide = () => {
    setOpen(false);
  };

  const handleOpenChange = (newOpen: boolean) => {
    setOpen(newOpen);
  };



  return (
    <>
      <Popover
        content={
          <div>

          </div>
        }
        zIndex={1001}
        placement="leftTop"
        title='添加自拟方'
        trigger="click"
        open={open}
        onOpenChange={handleOpenChange}
      >
        <>
          {children}
        </>
      </Popover>
    </>
  );
};
export default PopoverHooks;

